package com.cxy.dao;

import com.cxy.domain.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


// 2接口
@Mapper
public interface BookDao {

    @Select("select * from tbl_book")
    public List<Book> get();

    @Select("select * from tbl_book where id=#{id}")
    public Book getId(Integer id);
}
